package cn.lut;


import cn.lut.ba04.Student;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @user:dell
 * @date:2020年10月28 16:32
 */
public class MyTest4 {
    @Test
    public void test1(){
        String config="applicationContext.xml";
        ApplicationContext applicationContext=new ClassPathXmlApplicationContext(config);
       Student myStudent = (Student) applicationContext.getBean("myStudent5");
       System.out.println("mystudent"+myStudent);

    }
}
